package com.yc.system.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yc.framework.config.CustomFloatDeserializer;
import com.yc.system.entity.Book;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

@Data
public class CartInfo extends Book {

//    @TableId(value = "cl_id", type = IdType.AUTO)
    int clId;

    @Value("false")
    Boolean check;

    int cartNum;

    @TableField(exist = false)
    @JsonDeserialize(using = CustomFloatDeserializer.class)
    float countMoney;

    CartInfo(){
        check=false;
    }
}
